agents.anac.y2010.Southampton.similarity
Class SimilarityAgent

java.lang.Object
  extended by negotiator.Agent
      extended by agents.anac.y2010.Southampton.SouthamptonAgent
          extended by agents.anac.y2010.Southampton.similarity.SimilarityAgent
Direct Known Subclasses:
VariableConcessionSimilarityAgent

public abstract class SimilarityAgent
extends SouthamptonAgent


Field Summary
protected  java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory
          The best bids (in terms of our utility) that we have seen from the opponent.
protected  double utility0
          The utility (to us) of the first bid made by the opponent.
protected  double utility1
          The expected utility (to us) of the final bid made by the opponent.
 
Fields inherited from class agents.anac.y2010.Southampton.SouthamptonAgent
acceptMultiplier, bidSpace, MAXIMUM_ASPIRATION, myLastAction, myLastBid, myPreviousBids, opponentBids, opponentIsHardHead, opponentModel, opponentPreviousBid
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
SimilarityAgent()
           
 
Method Summary
protected  Bid getRandomBidInRange(double lowerBound, double upperBound)
          Get a random bid in a given utility range.
protected abstract  double getTargetUtility(double myUtility, double opponentUtility)
           
static java.lang.String getVersion()
           
 void init()
          This method is called by the protocol every time before starting a new session after the internalInit method is called.
protected  Bid proposeInitialBid()
          Propose the initial bid.
protected  Bid proposeNextBid(Bid opponentBid)
          Propose the next bid.
 
Methods inherited from class agents.anac.y2010.Southampton.SouthamptonAgent
chooseAction, finalize, getAgentNo, log, ReceiveMessage
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bestOpponentBidUtilityHistory

protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory
The best bids (in terms of our utility) that we have seen from the opponent.


utility0

protected double utility0
The utility (to us) of the first bid made by the opponent.


utility1

protected final double utility1
The expected utility (to us) of the final bid made by the opponent.

See Also:
Constant Field Values
Constructor Detail

SimilarityAgent

public SimilarityAgent()
Method Detail

init

public void init()
Description copied from class: Agent
This method is called by the protocol every time before starting a new session after the internalInit method is called. User can override this method.

Overrides:
init in class SouthamptonAgent

getVersion

public static java.lang.String getVersion()

proposeInitialBid

protected Bid proposeInitialBid()
Description copied from class: SouthamptonAgent
Propose the initial bid.

Specified by:
proposeInitialBid in class SouthamptonAgent
Returns:
The action to be bid.

proposeNextBid

protected Bid proposeNextBid(Bid opponentBid)
Description copied from class: SouthamptonAgent
Propose the next bid.

Specified by:
proposeNextBid in class SouthamptonAgent
Parameters:
opponentBid - The bid that has just been made by the opponent.
Returns:
The action to be bid.

getTargetUtility

protected abstract double getTargetUtility(double myUtility,
                                           double opponentUtility)

getRandomBidInRange

protected Bid getRandomBidInRange(double lowerBound,
                                  double upperBound)
                           throws java.lang.Exception
Description copied from class: SouthamptonAgent
Get a random bid in a given utility range.

Overrides:
getRandomBidInRange in class SouthamptonAgent
Parameters:
lowerBound - The lower bound on utility.
upperBound - The upper bound on utility.
Returns:
a random bid in a given utility range.
Throws:
java.lang.Exception